package com.hamster.crm.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 自定义异常 枚举类型
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum ExceptionEnum {

    DEPARTMENTPARAM_IS_NOT_NULL(400,"部门参数不能为空！"),
    SCORE_NOT_IN_BETWEEN(400,"分数不在范围区间！"),
    TITLE_IS_NOT_NULL(400,"标题不能为空！"),
    PHONE_IS_EXIST(400,"该手机号已被注册！"),
    AUTH_USERNAME_NONE(400,"用户名或密码不正确"),
    AUTH_LOGIN_TOKEN_SAVEFAIL(400,"存储令牌失败"),
    AUTH_LOGIN_APPLYTOKEN_FAIL(400,"申请令牌失败")



    ;
    private Integer code;
    private String msg;

}
